package gamecontent;

import javax.media.j3d.BranchGroup;
import javax.swing.JFrame;

import collision.FrogCollision;

public class Frogheads extends BranchGroup{
	
	public Frogheads(JFrame jframe) {
		this.setCapability(BranchGroup.ENABLE_PICK_REPORTING);
		this.setCapability(BranchGroup.ENABLE_COLLISION_REPORTING);
		
		Frog frog1 = new Frog(0.0f, 0.0f, -12.0f, jframe);
		this.addChild(frog1);
//		BoundingSphere bound1 = new BoundingSphere(new Point3d(0.0d, 0.0d, 0.0d), 0.1d);
//		frog1.setCollisionBounds(bound1);
		this.addChild(new FrogCollision(frog1.getAlphaOfFrogHead(), frog1));
		
		Frog frog2 = new Frog(-2.0f, 0.0f, -12.0f, jframe);
		this.addChild(frog2);
//		BoundingSphere bound2 = new BoundingSphere(new Point3d(-4.0d, 0.0d, 0.0d), 0.1d);
//		frog1.setCollisionBounds(bound2);
		this.addChild(new FrogCollision(frog2.getAlphaOfFrogHead(), frog2));

		Frog frog3 = new Frog(2.0f, 0.0f, -12.0f, jframe);
		this.addChild(frog3);
//		BoundingSphere bound3 = new BoundingSphere(new Point3d(-2.0d, 0.0d, 0.0d), 0.1d);
//		frog1.setCollisionBounds(bound3);
		this.addChild(new FrogCollision(frog3.getAlphaOfFrogHead(), frog3));
		
		Frog frog4 = new Frog(1.0f, -0.5f, -10.7f, jframe);
		this.addChild(frog4);
//		BoundingSphere bound4 = new BoundingSphere(new Point3d(2.0d, 0.0d, 0.0d), 0.1d);
//		frog1.setCollisionBounds(bound4);
		this.addChild(new FrogCollision(frog4.getAlphaOfFrogHead(), frog4));
		
		Frog frog5 = new Frog(-1.0f, -0.5f, -10.7f, jframe);
		this.addChild(frog5);
//		BoundingSphere bound2 = new BoundingSphere(new Point3d(-4.0d, 0.0d, 0.0d), 0.1d);
//		frog1.setCollisionBounds(bound2);
		this.addChild(new FrogCollision(frog5.getAlphaOfFrogHead(), frog5));
		
		Frog frog6 = new Frog(1.0f, 0.5f, -13.3f, jframe);
		this.addChild(frog6);
//		BoundingSphere bound2 = new BoundingSphere(new Point3d(-4.0d, 0.0d, 0.0d), 0.1d);
//		frog1.setCollisionBounds(bound2);
		this.addChild(new FrogCollision(frog6.getAlphaOfFrogHead(), frog6));
		
		Frog frog7 = new Frog(-1.0f, 0.5f, -13.3f, jframe);
		this.addChild(frog7);
//		BoundingSphere bound2 = new BoundingSphere(new Point3d(-4.0d, 0.0d, 0.0d), 0.1d);
//		frog1.setCollisionBounds(bound2);
		this.addChild(new FrogCollision(frog7.getAlphaOfFrogHead(), frog7));
	}
}
